// pages/address/address.js
Page({

  data: {

  },
  onLoad: function (options) {
    wx.setNavigationBarTitle({
      title: '选择收货地址',
    })
  },
  getWechatAddress: function (e) {
    var page = this;
    wx.chooseAddress({
      success: function (e) {
        console.log(e)
        if (e.errMsg != 'chooseAddress:ok')
          return;
        wx.showLoading();

      }, complete: function () { wx.hideLoading() }
    })
  },
  toEditAddress:function(e){
    wx.navigateTo({
      url: './edit',
    })
  }

})